package ArrayList;

import java.util.ArrayList;

public class TestDemo {
    public static void main(String[] args) {

        MyArrayList myArrayList=new MyArrayList();
//        myArrayList.display();

        ArrayList<Integer> arrayList=new ArrayList<>();
        arrayList.add(10);
        arrayList.add(20);
        arrayList.add(22229);

        ArrayList <Number>arrayList1=new ArrayList<>(arrayList);
        System.out.println(arrayList1);


    }

}
